#include "WXTIssueKeyCmd.h"

WXTIssueKeyCmd::WXTIssueKeyCmd(QObject *parent) :
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::WXTProtocol;
   this->m_functionCode = FunctionCode;
}

Package WXTIssueKeyCmd::toPackage()
{ Package package;


       QString head("api/v1/se/key/issue");
       package.setHead(head.toLatin1());
       package.setBody(m_body);
       package.setSeData(m_sedata);
       package.setHttpHead(m_httpHead);

       return package;

}

void WXTIssueKeyCmd::unPackage(Package package)
{
    m_key=package.body();
}

void WXTIssueKeyCmd::setBody(QByteArray body)
{
    m_body=body;
}

void WXTIssueKeyCmd::setSeData(SeData sedata)
{
    m_sedata=sedata;
}

void WXTIssueKeyCmd::setHttpHead(QMap<QByteArray, QByteArray> httpHead)
{
    m_httpHead=httpHead;
}

QByteArray WXTIssueKeyCmd::getKey()
{
return m_key;
}

void WXTIssueKeyCmd::setKey(QByteArray key)
{
m_key=key;
}
